#include "Indicator.h"

CIndicator::CIndicator()
{
}

CIndicator::~CIndicator()
{
}

uint64_t CIndicator::GetDateTime(CThostFtdcDepthMarketDataField stTick)
{
	uint64_t qwTime;
	uint64_t dwDate;
	uint64_t dwTime;
	dwDate = atoi(stTick.TradingDay);
	char szTime[7];
	memset(szTime, 0, 7);
	szTime[0] = stTick.UpdateTime[0];
	szTime[1] = stTick.UpdateTime[1];
	szTime[2] = stTick.UpdateTime[3];
	szTime[3] = stTick.UpdateTime[4];
	szTime[4] = stTick.UpdateTime[6];
	szTime[5] = stTick.UpdateTime[7];
	dwTime = atoi(szTime);
	qwTime = dwDate * 1000000000 + dwTime * 1000 + stTick.UpdateMillisec;
	return qwTime;
}